import * as puppeteer from 'puppeteer';
(async () =>
{
    const browser = await puppeteer.launch({ headless: true });
    const page = await browser.newPage();
    await page.goto('http://google.com');
    await page.screenshot({ path: './bin/google.png' });
    browser.close();
})();
